home *** CD-ROM | disk | FTP | other *** search
/ Underground / Underground CD1.iso / virii / zrodla / c / c0t.asm < prev    next >
Encoding:
Assembly Source File  |  1998-01-14  |  795 b   |  27 lines

  1. ;  'Extra-Tiny' memory model startup code for Turbo C 2.0
  2.  
  3. ;
  4.  
  5. ;  This makes smaller executable images from C programs, by
  6.  
  7. ;  removing code to get command line arguments and the like.
  8.  
  9. ;  Compile with Tiny model flag, do not use any standard I/O
  10.  
  11. ;  library functions, such as puts() or int86().
  12.  
  13. ;
  14.  
  15. ;  This code courtesey PC Magazine, December 26, 1989.
  16.  
  17. ;  But nobody really needs to know that.
  18.  
  19.  
  20.  
  21.  
  22.  
  23. _text           segment byte public 'code'
  24.  
  25. _text           ends
  26.  
  27. _data           segment word public 'data'
  28.  
  29. _data           ends
  30.  
  31. _bss            segment word public 'bss'
  32.  
  33. _bss            ends
  34.  
  35.  
  36.  
  37. dgroup          group           _text, _data, _bss
  38.  
  39.  
  40.  
  41. _text           segment
  42.  
  43.                 org 100h
  44.  
  45. begin:
  46.  
  47. _text           ends
  48.  
  49.  
  50.  
  51.                 end     begin
  52.  
  53.